package com.lihan.netty;

import java.io.Serializable;

/**
 * ClassName: DataContent
 * Package: com.lihan.netty
 * Description:
 *  前端的消息bean
 * @Author 李涵
 * @Create 2025-02-28 9:25
 * @Version 1.0
 */
public class DataContent implements Serializable {

    private Integer action;  //动作类型
    private ChatMsg chatMsg; //用户的聊天实体(消息id,发送者id,接收者id,消息)
    private String extend;   //拓展字段


    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public ChatMsg getChatMsg() {
        return chatMsg;
    }

    public void setChatMsg(ChatMsg chatMsg) {
        this.chatMsg = chatMsg;
    }

    public String getExtend() {
        return extend;
    }

    public void setExtend(String extend) {
        this.extend = extend;
    }
}
